package com.gzzn.validate.support;

import com.gzzn.validate.internal.Rule;

/**
 * author : zdp（zdp118@gmail.com）
 * date   : 2014-3-2
 * 电子邮件校验器
 */
public class EmailValidate extends ValidateWithRegex {

	static final String EMAIL_REGEX = 
			"^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$";
	
	static final String messageT = "请输入邮箱";
	
	public EmailValidate() {
		super(messageT,Rule.Email,EMAIL_REGEX);
	}

}
